import React, {Component} from 'react';
import {
    Image,
    StyleSheet,
    Text,
    View,
    TextInput,
    TouchableOpacity,
    StatusBar,
} from 'react-native';

import forge from 'node-forge'
export default class Utils extends Component {

    static getMD5(data) {
        // var forge = require('node-forge');
        var md = forge.md.md5.create();
        md.update(data);
        var password = md.digest().toHex();
        return password;
    }
}